I don't see how caffein could keep me awake. I am sure I can sleep very well after having coffee. All it does is making my nasal throat very sensitive somehow. Tempting me to cough deliberately for some mucus.
If that ever kept me from sleeping.
I just need to stop myself doing that, coughing, that is. Let the natural physiology take its course.