Minimize calls to permission checks for pages that are not yet displayed, i.e. to know if a page has children that are visible in the current configuration, it is enough that we find one page that is visible (i.e. configuration and permissions are correct).
Currently all visible children are loaded.