Reduced number of rehashes in HashMaps