A former CIA officer caught with $40 million in gold bars at his Virginia home has agreed to a tentative plea deal on charges he stole public money by padding his timesheet and faking academic credentials, court records show. The agreement, disclosed in a joint filing Thursday, lets David J. Rush avoid a public trial that prosecutors and defense counsel said would have required significant litigation over classified material.

The gold and the charges

Investigators searched Rush’s residence and seized roughly 300 gold bars valued at more than $40 million, about $2 million in cash, and 35 luxury watches. An FBI affidavit stated Rush had obtained the bars from the U.S. government for “work-related expenses.” A Justice Department attorney told a June hearing Rush was not supposed to keep them at home. Rush’s lawyer has called the gold “a sensational tidbit” unrelated to the theft charge.

The alleged scheme

The indictment accuses Rush of claiming 744 hours of military leave on federal timecards after his honorable discharge from the Navy in 2015. It also alleges he inflated his CIA salary by listing degrees from Clemson University and Rensselaer Polytechnic Institute that he never earned. The theft-of-public-money charge was filed in May.

The timeline

A federal judge in the Eastern District of Virginia on Friday pushed the formal indictment deadline to Oct. 8, giving both sides time to finalize terms. The U.S. Attorney’s office declined to comment Saturday. Rush’s attorney did not immediately respond to a request for comment.

What comes next

The plea agreement itself remains under seal. If finalized, it will close a case that began with a routine payroll audit and ended with one of the largest physical-asset seizures in recent memory, all belonging to a man whose job was to handle secrets.