Fixes Ticket 21012 -- Provide shared "caches" dict to avoid creating multiple cache class instances.

Mimicing the ConnectionHandler class, this provides a dict-like access to  caches.