Use reduce in file_loader