Got rid of mean calculation in Redis