For a long time there was push to handle some of that under magistrate courts and other approaches so that to properly defend you have to appeal to actually get in front of proper court.

There was at least one case where prosecution never, ever, seen the evidence of supposed CSAM found on accused's computer, and if not for the lucky person having a slightly less overworked public defender, they had high chances of being found "guilty" if of minor offense for having what used to be staple of family photo albums - photo of the toddler grand-kids playing in kiddy pool, which was reported by computer tech at a laptop repair business.