Free up memory after convert to marisa trie