The magistrate shall further have authority to render such orders as are reasonable and necessary, to protect the court's jurisdiction over the matter described in the affidavit for a search warrant and may issue orders requiring that the matter not be removed from its location as described in the affidavit for a search warrant or to make any change, alteration, or destruction of the matter until such time as a hearing has been conducted and the search warrant executed or the request therefor denied.
SDCL 23A-36-3