FlexPrefixTree optimizations