Implemented the local cache. Used for storing user and flave attributes locally.