Added Cache

Added usage of cache for discovery service.