Caffeine is also linked to panic attacks, anxiety and sleep loss (and loss of quality of sleep), I would recommend staying off caffeine all together, having tried both, I by far more like working in the calmness of not having caffeine circulating in my body.
https://en.wikipedia.org/wiki/Caffeine-induced_anxiety_disor...