[nobug] Trie loading refactoring

Change-Id: I09bbc214086d7835be1ba34b091e705c513360e0