I've yet to have a coffee since the new year, and I find it does in fact help with keeping focus.
I think I was looking for magic bullets (talismans) and hit on coffee only by noticing that no matter what I did, what productivity thingy I used, it was the mood swings that were my worst habit.