I agree with you about sleep, it's very underrated for cognitive ability and memory development.
Did your research turn up anything negative about Modafinil?
I find Modafinil to be much more powerful than caffeine, however I do worry about long term side effects, even though my research suggests they are safe to use.