add caching for parallel js optimizer