The public (through media and punditry) has developed an opinion of juries as fickle, but having recently served on one it seems apparent this is mostly undeserved. And I'm sure judges understand this. (Second data point: I've also heard a trial judge explain that in all his years on the bench only once did he worry a jury might return a patently unjust verdict. He said he was prepared to reject the verdict in that case, but in the end the jury acquitted.)
edit: and as you suggest, I'm sure my opinion is impacted by high-profile mistrials I've seen in the media
It's not just the judge with which attorneys want to maintain good will. Both defense and prosecution will often cooperate to winnow down the jury pool before voir dire.
In the first occasion, we were told by the judge that the case we had been assembled for was settled out of court that morning, so we were going to be used for a different case, involving potential parole for a person who had been convicted, and therefore any police officers in uniform were automatically excused. We were then told that the two sides had agreed to the terms, so it was basically going to be a formality in front of the jury, and so the first twelve people plus the alternates were to stay, since there wouldn't even be any interviews of the jurors to see if either side objected to anyone. I wasn't in the first set of people, so I and twenty or thirty other people just left.
In the second occasion, we had a smaller group and only eight jurors were to be picked. The first thing the judge did was ask where a certain person was, and thanked him for his service as the chair of the law school for UT Austin, and noted that his term had coincidentally ended just that morning. He also excused the chairman emeritus. Serving military personnel were also thanked for their service and excused, due to the nature of the case. Then the lawyers started talking about the basics of the case. This was a personal injury case, and there were multiple parties being sued, who of course each had their own lawyers. All of the defendant lawyers seemed quite capable and very professional. However, the plaintiff lawyer was, to be kind, clearly an ambulance chaser. He kept saying stuff during the intro that he shouldn't be saying and some things were literally illegal to say, and the other lawyers and the judge kept calling him on that. After the intros were done, the judge asked if there was anyone in the room who still needed to be excused, and if so they would need to come up and explain it to him. I held up my hand, and was directed to approach the bench, along with the all of the lawyers. The judge asked me what was wrong, and since the guy was literally standing right next to me, I said "I'm sorry sir, but I have already taken a very intense disliking to one of the lawyers, and I'm afraid that I may not be able to be impartial with regards to anything they might say or do, to the detriment of their clients." The judge seemed quite surprised, and the lawyer for the plaintiff asked me if I could say who it was. Since he was standing right beside me, while looking straight at the judge, I said to him "with all due respect sir, I really don't think you want me to answer that question." The judge excused me, and I think I saw some light smiles on the faces of the other lawyers. As I walked out, I desperately wanted to tell the actual plaintiffs that they needed to get a better lawyer, but I kept my mouth shut.
So far, that's been it.
Each prospective juror was interviewed individually by the lawyers and judge, with no one else in the courtroom. From their questioning, I had the distinct impression that both the prosecutors and the defense counsel were OK with having a couple of lawyers on the jury, to help make sure that the non-lawyer jurors followed the judge's instructions about the burden of proof, etc.
And that's how it turned out: A couple of times during deliberations, a juror would say, "Well, I think what happened was X," and either the foreman or I would gently ask, "um, do we have any evidence of that?" Another time, a juror said, "But we heard so-and-so testify that Y happened," and the other lawyer and I had to remind everyone that the judge had instructed us to disregard that testimony.
(I was very pleased to see that after just a few times, we two lawyers didn't have to provide such reminders, because other jurors would do so first.)