Routing Marks for Multiple Gateways Override Local Routes

So I have multiple Internet connections, multiple gateways. I have routed segments of the network. I mark the connection and packets and finally create a routing mark for a segment which works perfectly for what I need. Once that routing mark is in place and the local static routes don’t work - I can ping any local devices on my network located on other routed segments. Is there a way to have it check the local static routes before it uses the gateway of last resort?

Try using chain Post-Routing. Might help.

Kindly feedback.