I agree, 10 yrs would be better.
We should abandon the idea that prison is for rehab or punishment, but is rather for the well-being of society: we should lock criminals up for long stretches so our society can operate normally without worrying about random meth/heroin users stealing, shoplifting, burglarizing, raping, murdering, etc. If someone who isn't "going to win any good citizen awards" keeps ending up in handcuffs, its time to move on. Just lock them up for any minor offense you happen to catch him on and don't let him out until he's too old and feeble to be a threat to anyone. I have yet to catch someone in possession of stolen property that didn't also have a meth or heroin problem, and every time I take a burg report where some nice old lady's family heirloom jewelry was stolen from her bedroom during a burg that occurred while she was at church I lose a little more of what meager sympathy I have for addicts. That loss accelerates when the poor old lady is crying because that jewelry was the only tie she had left to family members that had passed away.
As far as the prosecutor taking a "dislike" to your client: good. We need more of that. I don't even know your client and I don't like him either. The prosecutor recognizes the suspect for the dirtbag he is. That prosecutor, his family, or the families of any good people shouldn't have to worry about becoming victims of crime because some douchebag addict has poor impulse control.
Five years wasn't enough and never will be.