Optimizations of a three way cuckoo hashtable