avoid duplicating trie tables and split data per function