Optimised derived stats updating.