My guess is that the biggest gain you could make is by not storing four values in four different hashes. The overhead of having references to four tiny hashes just dwarves whatever you win by selecting the appropriate way of finding the maximum of four values.