Have a look at this thread for some information on caching with multiple workers using shared arrays.