(3) Where an order is made under subsection (1), all documents relating to the application shall, subject to any terms and conditions that the judge or magistrate considers desirable in the circumstances, including, without limiting the generality of the foregoing, any term or condition concerning the duration of the prohibition, partial disclosure of a document, deletion of any information or the occurrence of a condition, be placed in a packet and sealed by the judge or magistrate immediately on determination of the application, and that packet shall be kept in the custody of the Court in a place to which the public has no access or in any other place that the judge or magistrate may authorize and shall not be dealt with except in accordance with the terms and conditions specified in the order or as varied under subsection (4).