optimzation for computing comb results multiple times