simple cache for metadata