Replaced large hash function with a small simple one

The hashmap rehashes it anyway