WASHINGTON, DC - JUNE 23:  FBI Director James Comey participates in a news conference on child sex trafficking, at FBI headquarters, June 23, 2014 in Washington, DC. Director Comey said that 168 juveniles have been recovered in a nationwide operation targeting commercial child sex trafficking.  (Photo by Mark Wilson/Getty Images)
WASHINGTON, DC - JUNE 23: FBI Director James Comey participates in a news conference on child sex trafficking, at FBI headquarters, June 23, 2014 in Washington, DC. Director Comey said that 168 juveniles have been recovered in a nationwide operation targeting commercial child sex trafficking. (Photo by Mark Wilson/Getty Images)
PHOTO: Mark Wilson/Getty Images
Now playing
01:05
Who is James Comey?
PHOTO: Getty Images
Now playing
01:42
FBI declines to hand over Comey memos
US President Donald Trump speaks during a joint press conference with Colombia
US President Donald Trump speaks during a joint press conference with Colombia's President Juan Manuel Santos at the White House on May 18, 2017 in Washington, DC.
PHOTO: JIM WATSON/AFP/Getty Images
Now playing
01:45
Trump denies asking Comey to stop Flynn probe
WASHINGTON, DC - JANUARY 26: Upon returning from Philadelphia, President Donald Trump walks along the West Wing Colonnade on his way to the Oval Office at the White House, January 26, 2017 in Washington, DC. President Trump traveled to Philadelphia for the Joint GOP Issues Conference. (Photo by Drew Angerer/Getty Images)
WASHINGTON, DC - JANUARY 26: Upon returning from Philadelphia, President Donald Trump walks along the West Wing Colonnade on his way to the Oval Office at the White House, January 26, 2017 in Washington, DC. President Trump traveled to Philadelphia for the Joint GOP Issues Conference. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
Now playing
01:55
Democrats and the 'I' word
The US Capitol building is pictured January 9, 2017 in Washington, DC.
The US Capitol building is pictured January 9, 2017 in Washington, DC.
PHOTO: Zach Gibson/AFP/Getty Images
Now playing
01:27
Presidential impeachment 101: What to know
US President Donald Trump waves as he walks towards Marine One while departing the White House on May 17, 2017 in Washington, DC en route to Connecticut. / AFP PHOTO / Olivier Douliery        (Photo credit should read OLIVIER DOULIERY/AFP/Getty Images)
US President Donald Trump waves as he walks towards Marine One while departing the White House on May 17, 2017 in Washington, DC en route to Connecticut. / AFP PHOTO / Olivier Douliery (Photo credit should read OLIVIER DOULIERY/AFP/Getty Images)
PHOTO: OLIVIER DOULIERY/AFP/Getty Images
Now playing
02:25
Obstruction of justice difficult to prove
WASHINGTON, DC - JANUARY 22: U.S. President Donald Trump (C) shakes hands with James Comey, director of the Federal Bureau of Investigation (FBI), during an Inaugural Law Enforcement Officers and First Responders Reception in the Blue Room of the White House on January 22, 2017 in Washington, DC. Trump today mocked protesters who gathered for large demonstrations across the U.S. and the world on Saturday to signal discontent with his leadership, but later offered a more conciliatory tone, saying he recognized such marches as a "hallmark of our democracy." (Photo by Andrew Harrer-Pool/Getty Images)
WASHINGTON, DC - JANUARY 22: U.S. President Donald Trump (C) shakes hands with James Comey, director of the Federal Bureau of Investigation (FBI), during an Inaugural Law Enforcement Officers and First Responders Reception in the Blue Room of the White House on January 22, 2017 in Washington, DC. Trump today mocked protesters who gathered for large demonstrations across the U.S. and the world on Saturday to signal discontent with his leadership, but later offered a more conciliatory tone, saying he recognized such marches as a "hallmark of our democracy." (Photo by Andrew Harrer-Pool/Getty Images)
PHOTO: Andrew Harrer/Pool/Getty Images/FILE
Now playing
02:10
Sources: Trump asked to end Flynn investigation
Rep. Jason Chaffetz, R-UT, speaks following the Republican nomination election for House speaker in the Longworth House Office Building on October 8, 2015 in Washington, DC. AFP PHOTO/MANDEL NGAN        (Photo credit should read MANDEL NGAN/AFP/Getty Images)
Rep. Jason Chaffetz, R-UT, speaks following the Republican nomination election for House speaker in the Longworth House Office Building on October 8, 2015 in Washington, DC. AFP PHOTO/MANDEL NGAN (Photo credit should read MANDEL NGAN/AFP/Getty Images)
PHOTO: MANDEL NGAN/AFP/Getty Images
Now playing
01:41
Chaffetz: I'm ready to subpoena for Comey memo
elijah cumming
elijah cumming
PHOTO: CNN
Now playing
00:47
Cummings: Trump has stepped over the line
gergen ac
gergen ac
PHOTO: CNN
Now playing
00:59
Gergen: Trump is in impeachment territory
Sen Angus King on TSR
Sen Angus King on TSR
PHOTO: CNN
Now playing
00:59
Senator: Trump's request impeachable, if true
Jeffrey Toobin tsr.
Jeffrey Toobin tsr.
PHOTO: CNN
Now playing
01:29
Toobin: If true, it's obstruction of justice
US Representative from California Adam Schiff, ranking member of the House Intelligence Committee, speaks to the press about the investigation of Russian meddling in the 2016 presidential election on Capitol Hill in Washington, DC, on March 24, 2017.
US Representative from California Adam Schiff, ranking member of the House Intelligence Committee, speaks to the press about the investigation of Russian meddling in the 2016 presidential election on Capitol Hill in Washington, DC, on March 24, 2017.
PHOTO: NICHOLAS KAMM/AFP/Getty Images
Now playing
01:28
Schiff: Comey memo allegations disturbing
PHOTO: Getty Images
Now playing
02:15
NYT: Trump asked Comey to end Flynn inquiry
(CNN) —  

Former FBI Director James Comey has a well-known history of documenting important and controversial moments – and there’s a history of those emails or memos surfacing at politically opportune times.

Trump administration officials surprised at revelations that Comey documented conversations with President Donald Trump in memos he shared with friends should have taken a clue from Comey’s past in the Bush and Obama administrations.

In 2009, The New York Times published stories on how top Bush administration and Justice Department officials signed off the use of torture on detainees suspected of terrorist links.

One story was based on emails leaked to the Times shows that Comey had written to Attorney General Alberto Gonzales in 2005, arguing that the torture tactics were a bad idea and that Gonzales and other Justice officials would regret being pushed by the White House to approve them.

At the time the stories were published, Obama Justice Department officials marveled at the fortuitous timing of someone close to Comey coming to rescue of his larger-than-life, good guy reputation.

That episode led Matt Miller, who led communications for Attorney General Eric Holder, to tweet in the wake of Trump’s tape threat against Comey last week that the former FBI director was well known to document things religiously. It also served as notice to Obama Justice officials when Comey became FBI director to always be mindful that Comey would likely document any disagreements that could end up being the subject of congressional investigations.

Comey is better known for famously testifying 10 years ago this week at a Senate hearing, describing for the first time in public a confrontation with the Bush White House over the legality of a surveillance program.

Versions of the story had been leaked years earlier.

Obama-era Justice Department officials say they believe Comey likely documented his disputes with superiors and big moments during the former administration.

During the Obama administration, Comey’s disagreements with major decisions frequently spilled out in public – for instance, his opposition to Holder’s lenient treatment of David Petraeus, the former general who mishandled classified information and lied to the FBI, and over the department’s focus on police misconduct after the shooting of a black man in Ferguson, Missouri.

Brian Fallon, who served as public affairs director under Holder, said the assumption among Obama officials was that Comey kept memos and records of emails.

“It would not be a surprise to learn Comey’s penchant for memorializing things included emails to his aides about input he provided in meetings or his feelings on key policy issues where he disagreed with the direction the administration took. But that is qualitatively different than a memo-to-file intended to preserve evidence as part of an ongoing criminal investigation,” said Fallon, who also worked as a spokesman for Hillary Clinton’s campaign.

“Moreover, because Comey is no shrinking violet, a lot of the disagreements he had during the Obama years spilled out into public view in real time, as happened on issues like encryption and with his comments on the so-called ’Ferguson effect.’