I agree with the above posts… that’s how I’ve been told to do.
Stay in the “danger zone” for as little as possible.
Also, years ago talking to police bikers, that was their views as well, break the speed limit for a safe overtake, back into the lane and back to the speed limit..
Of course this is not to be done overtaking cars doing 20mph on a 30mph! lol
And as long as you are not overtaking a car doing 50mph on a 60 and you blast past at 130…it should be alright.