Genetics and personal physiology I believe is the biggest variable, but outside of adequate acclimation I believe drinking a lot of water is the best thing a person can do to help themselves out. A gallon a day isn't too much, by any means.

I love my coffee as much as the next guy, but it does dehydrate you.