The court may direct that a document that has been tendered or produced before the court (whether or not it is admitted in evidence) is to be impounded and kept in the custody of an officer of the court or of another person for such period, and subject to such conditions, as the court thinks fit.