Throttle rate of scanning filenames to reduce memory footprint