Reduce work done on flushPenState.