I note that the damage is limited in other countries by not electing judges and prosecutors -- these are appointed civil service posts, and while that has its own drawbacks, it means that nobody below the level of Justice Minister builds a career on the basis of how many convictions they achieve/life sentences they hand out.