WASHINGTON >> Special counsel Jack Smith is evaluating how to wind down the two federal cases against Donald Trump before the president-elect takes office in light of longstanding Justice Department policy that says sitting presidents cannot be prosecuted, a person familiar with the matter said Wednesday.

Smith charged Trump last year with plotting to overturn the results of the 2020 presidential election and illegally hoarding classified documents at his Mar-a-Lago estate. But Trump’s election defeat of Kamala Harris means that the Justice Department believes he can no longer face prosecution in accordance with department legal opinions meant to shield presidents from criminal charges while in office.

The person familiar with Smith’s plans was not authorized to discuss the matter by name and spoke on condition of anonymity to The Associated Press.

By moving to wind down the cases before the inauguration in January, Smith and the Justice Department would be averting a potential showdown with Trump, who said as recently as last month that he would fire Smith “within two seconds” of taking office. It would also mean Trump would enter the White House without the legal cloud of federal criminal prosecutions that once carried the potential for felony convictions and prison sentences.

NBC News first reported Smith’s plans.

Smith’s two cases charge Trump in a conspiracy to undo the election results in the run-up to the Capitol riot, and with retaining top secret records at his Mar-a-Lago estate in Florida and obstructing FBI efforts to recover them. He was appointed to the position in November 2022 by Attorney General Merrick Garland.

The classified documents case has been stalled since July when a Trump-appointed judge, Aileen Cannon, dismissed it on grounds that Smith was illegally appointed. Smith has appealed to the Atlanta-based 11th U.S. Circuit Court of Appeals, where the request to revive the case is pending. Even as Smith looks to withdraw the documents case against Trump, he would seem likely to continue to challenge Cannon’s ruling on the legality of his appointment given the precedent such a ruling would create.

In the 2020 election interference case, Trump was scheduled to stand trial in March in Washington, where more than 1,000 of his supporters have been convicted of charges for their roles in the Capitol riot. But the case was halted as Trump pursued his sweeping claims of immunity from prosecution that ultimately landed before the U.S. Supreme Court.

Trump could be emboldened by the Supreme Court’s ruling in July, which granted former presidents expansive immunity from prosecution for acts taken in the White House and explicitly put off-limits any alleged conduct involving Trump’s discussions with the Justice Department. That included his efforts to use the Justice Department to conduct sham election fraud investigations as part of his bid to stay in power.