optimized hashtable