only parallelize when params.cores != 1