Optimized functions processParallel and processParallel_.