Finally figured out how a PersistentHashTrie might actually improve performance.