Optimized the generation of file splits