Caching support is now thread safe.

Additionally the multiprocess server now takes advantage of the cache.