remove extra memset in hash functions