A federal judge in Virginia sentenced the former CIA employee who leaked Israeli military secrets to three years and one month in prison on Wednesday, rejecting the government’s request for a much harsher term.

U.S. District Judge Patricia Tolliver Giles said she had to balance the potential harm caused by Asif William Rahman’s disclosure of secret analyses of Israel’s plans for an attack on Iran against his swift decision to cooperate and plead guilty to two Espionage Act violations.

Giles said she had completely discarded the inflammatory allegation in a declaration from a high-level political appointee at the CIA, Michael Ellis, that Rahman had caused “exceptionally grave” damage to national security.