Performance improvement to LookupTable