Use multiprocessing to do pre-processing