scale timeout based on number of files