Avoid using two queries to get basic metadata.