to prevent timeouts when listing tens of thousands of files. BUG: 462059
mentioned in commit 5821c30d