Try to avoid overflow in Q-function strategies through mathematical transformations. It's important not to slow things down too much.