Schulte was placed in a position of trust by the US government. Not only did he betray that trust by brazenly committing one of the most substantial cases of espionage this century, but he also continued his criminal behavior in prison by attempting to leak further damaging documents in addition to accessing child pornography. Federal investigators did an amazing job bringing this traitor to justice, and a 40-year prison sentence is an appropriate punishment.
The Special Administrative Measures that Schulte is placed in — which will continue throughout his 40-year sentence — means he's held in solitary confinement in a cell the size of a parking space for 23 hours a day. He has no access to reading materials or entertainment, and is allowed no visitors except his lawyers. While Schulte broke federal laws, and nothing excuses his possession of child pornography, that doesn't mean he should be tortured — this is revenge for him informing the American people of their government's unscrupulous activities.