Added support for connected realms on the core. Caches are abstracted from this feature.