Caching metadata.
Fixed new Metadata cache, added helpers.