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.

In addition to his prison term, she gave Rahman two years’ probation and a $50,000 fine. Rahman’s sentence was significantly lower than the 9 years the government requested in a briefing last month — a sentence prosecutors said was warranted by the harm he “could have” caused and ill will demonstrated by a list of relatively routine phone apps.