I drink coffee that's a mix of 33% regular / 66% swiss-water decaf. It's the best of both worlds, you can keep yourself awake but you're not getting the huge highs and lows of regular coffee.
My flow has been massively stable since I started doing this.