I was in a highly political and highly toxic situation prior to my current engagement. It took me over two years to get out of it. If you are not already in one of a handful of major tech hubs, it can be extremely difficult to get out such a situation. Granted, the pragmatic cynicism doesn't help, but if you can stomach it you can stay in a somewhat better frame of mind than I let myself devolve into.