Implemented local storage for metadata.