Which then brings up the thorny issue of which cases to drop, and why make those things illegal in the first place.
I don't know what the alternative is though. Maybe Judge Dredd style law enforcement of police, judge and jury in one job..
Plea bargains allow the justice system to effectively ignore all those costs and instead push them onto a non-representative subset of society.