Only flush if we need to.