parallelize this
parallel cache_infer works