Performance improviments in FlatToHierarchicalProgressMonitor