Improved lookup table performance by eliminating wrapping