(9) Where the magistrate who issues a warrant under subsection (4) or any other magistrate having jurisdiction to issue such a warrant is, on the basis of an affidavit submitted in support of an application to vary the period within which the notice referred to in subsection (8) is to be given, is satisfied that the interests of justice warrant the granting of the application, the magistrate may grant an extension, or a subsequent extension, of the period, but no extension may exceed 3 years.