A grand juror may be required by any court to disclose the testimony of any witness examined before the grand jury for the purpose of ascertaining whether it is consistent with the testimony given by the witness before the court or on a charge of perjury against him.