further disclosure of grand jury proceedings convened pursuant to this act may be made upon written order of a superior court judge if the judge determines disclosure is essential : ( 1 ) to prosecute a witness who appeared before the grand jury for contempt or perjury ; or ( 2 ) to protect a defendants constitutional rights or statutory rights to discovery pursuant to g.s .