One more improvement to the 0-flag-byte avoidance algorithm.