Implementing local cache