index case_ids in the xform index, and leverage that for check_case_integrity