Creating lookup tables for encrypted messages