Cookie allows you to calculate a running average efficiently