Best scientific strategy to stay awake and productive using caffeine during the night?

No.10958124 ViewReplyOriginalReport
Basically my advisor is late giving me some info I need for my research, I will probably receive it tomorrow evening and I'll need to finish writing it by next morning. I will have a full morning and afternoon of work the day before so I won't be able to take a nap. It will be basically about 24 hours staying awake and mentally productive. Is there any way to maximize my productive time during the night using coffee? Should I maybe get some caffeine tablets with prolonged release mechanism instead of drinking coffee?
Be aware that the point is to stay productive during the night, since I will need to understand scientific research and write. I'll have around 12 hours of time since I arrive home until the deadline.