save trie to save time