little speedup for table init
Merge pull request #201 from michele-comitini/table_init_speedups

little speedup for table init