Metadata caching