[caching/metadata_dump] only dump valid hints