computation speedup for the lookup table