Highly reduce the number of allocations required to build a trie.