hashtable optimizations