Creating mixed array-hashtable lookup tables