_distinct in metadata cache