Reduce hash table memory usage