Minior optimization to flush