With significantly improved query time for all cohort and single cohort functions