Avoids the "Too many open files" error in case of a large number of input files.