Updated to temporary trie