If the prosecution withheld material info, it deserves to have its case kicked out of court. And more.
That this should come out at trial is inexcusable.
The case should be dismissed, and the prosecutor needs to be investigated.