The magistrate shall keep the record of the preliminary hearing and the statement of the defendant, if any, until the record is returned to the proper court and shall not permit the record to be inspected by any person, except the district attorney of the county or the attorney who acts for the district attorney and the defendant and the counsel of the defendant.
ORS 135.155