Dirty optimization of badges analytics