Cohort-based vcf calculations optimization

Group by to return less rows to iterate on