MDL-41674 backup: Use a trie for grouped path detection.