Optimize CoverageByXPathLevels data model and trie queries (#8333)