Also, we should use the metadata cache and not call getMedataValues() directly.