Add LUT

Optimize printing with a lookup table. Randomize the index to lower cache contention.