Make update_entity_runnable_avg fast