When did you last service your pump? Most "dirty" flushing water is the result of blow-by on the o-ring around the piston. This is reduced by pumping slower (which reduces pressure) and by servicing the pump, at minimum with a new o-ring to improve the seal around the piston.
The joker valve only serves to stop any backflow from the tank. It normally does this reliably, but only if "clear" of any debris. You can tell if your problem is from backflow if liquid keeps entering the bowl after the flushing lever is put over to the right and the pump stopped.
You can also fit a diverter valve near the toilet, with an input from the toilet output, one outlet to the tank and one direct to a seacock. Now once you're done flushing, set the diverter valve to sea again. This stops any backflow from the tank completely, as that leg is now closed. Could even fit a normal ball valve if you do not want the direct overboard function.