REFAC: batch size minimum
The keras iterator create a distinct file for each batch. If batch size becomes very small, this will result in the creation of many files containing only a very smal amount of data (or only a single data point if batch size is 1). Therefore create a threshold to combine batches in a file if the batch size is below.