Small optimizations to HashTable