I would apply some bit manipulation here to get better distribution. Check the one in IdentifyHashMap.