That's cool however I'd vote for constants here. Because those really are constant values that should never change. Plus whenever you call this method this hash is recreated. With a constant it is only created once.