Dynamic compilation of look-up tables