add cache validation for metadata