For performance reasons, large tables should preferably be read from file, and thus be all dealt with in external C code.