optimize some hash table operations

Link: https://github.com/GeneAssembly/biosal/issues/725
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>