Easy fix make prosecutors become defense lawyers every second case. Outcomes of both affect careers.
Chief public defender isn't, and in fact that position doesn't even exist.
So success in defending will never affect political careers.
There's probably arguments against the change, I dunno, I haven't thought about it. "You can't change things" isn't one of them.