Even if plea bargaining is unjust to the poor because they may have inadequate representation, it doesn't matter- inadequate representation shows through at trial as well as in plea bargain negotiations.
The prosecution has a responsibility to share evidence gathered with the defense.