What you have to do is play the market with your GHs. Buy low and sell high just like a stock. There's usually a mass sell of a couple days before a diff increase so you can sell at whatever it is then pick up more hashing power after the diff increase and keep up somewhat with the increase.