, and maybe a few more brain cells, by transforming a cononical hash into data structures that might be more efficient for computing and tracking various things. Although it's sometimes implied, there is no reason you have to have just
hash (or stucture) - the biggest issue there is going to be ensuring all of your structures are synchronized. Again, this is in the event that you find yourself doing mental hoops to iterate over a data structure when it'd be a lot easier to compute or look up what you need after a straightforward transformation.