uptimize stat_update()