improved reading performance for a large number of files