Replace translation function with persistent lookup table