parallelize dark subtraction