More effective than cofee is to truly engage the mind in an activity that the mind truly likes and searches for answers actively.
The opposite of this is a boring activity that the mind is not interested in for some reason.