Added cache key generation and context validator framework.