If the return is made and the proceedings had before a judge of a court in vacation, he shall cause all of the proceedings to be written, shall certify to the same, and cause them to be filed with the clerk of the court which has jurisdiction of the offense, who shall keep them safely.
Tex. Code Crim. Proc. § 11.52