optimize the hash table code

meta1 1x2x8
40m36.608s

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>