There seems to be stereotype that high performance geeks rely on caffeine drinks to stay alive. In reality only regular sleep cycles and adequate exercises can keep you at your peak performance over the long term. Meditations can help you to control your focus and weed out distractions, so you waste less of your time when the environment doesn't fit you.

If you really need to pull a few all-nighters, consider taking something on a measurable dosage, so when you decide to rehabilitate, you can adjust your intake on a decay curve.