The director shall preserve all precinct election certificates, tallies, and registers for four years after the election. All ballots and stubs for elections other than national elections may be destroyed 30 days after the certification of the state ballot counting review unless an application for recount has been filed and not completed, or unless their destruction is stayed by an order of the court. All ballots for national elections may be destroyed in accordance with federal law. The director may permit the inspection of election materials upon call by the Congress, the state legislature, or a court of competent jurisdiction.