optimizing stats updation of videos