My favorite for stuff like this:

    return cache_core.cached_view(
        Domain.get_db(),
        "domain/by_status",
        keys=[[is_active, d] for d in domain_names],
        reduce=False,
        include_docs=True,
        wrapper=Domain.wrap
    )