toob: You may be more cynical than I am. And, I experienced contact with attorneys almost daily in my career.
The right to take a life lawfully is in fact, in place to do exactly that, protect the righteous shooter. So be righteous!
Not knowing where you live, I'll still take issue with "It is what prosecutors live for." I've known great prosecutors, mediocre ones and more than one who was incompetent. But, in my years, I never met one who wanted to manipulate the evidence in order to prosecute a person. Perhaps I was just lucky or ignorant. But, I never knew an attorney, prosecuting or defense, who desired to lose a case. I've read of some, the Lacrosse player case being one. But, my personal experience certainly doesn't mirror what you've experienced.
Defense attorneys are usually paid by the hour. They can bill an hour multiple times in certain circumstances. Prosecuting attorneys and judges have no such option/incentive, they are paid a salary. So, the only part of the system that may be driven by money are the defense attorneys, as they are likely losing money if they are in the courtroom. Judges with a reputation of forcing defense attorneys to move forward are often recused by the defense at the start of the process.
All of the above is meaningless, of course, if you reside in a jurisdiction where people in the system routinely accept bribes. And, in such jurisdictions, those cases often move very, very fast.