Facebook (FB) CEO Mark Zuckerberg famously only takes a $1 annual salary, but the cost of ferrying and protecting him has cost Facebook $20 million over the past three years, according to a new public filing. 

The company said that the cost of Zuckerberg's security was a way to address "threats to his safety arising directly as a result of his position as our founder, chairman and CEO" of Facebook, a holding in Jim Cramer's Action Alerts PLUS Charitable Trust Portfolio.

The expenses include fees, fuel, crew and catering costs for his private flights as well as security personnel and systems at his residences. 

While paying for the security of high-profile executives isn't uncommon, the $9 million Facebook spent on Zuckerberg's security last year dwarfs the $317,000 Apple (AAPL) says it spent on CEO Tim Cook's security and travel last year. 

Facebook also covers security expenses for COO Sheryl Sandberg. The company shelled out $2.7 million for travel and security for Sandberg last year. 

Facebook spent $5.8 million on Zuckerberg's security in 2016 before raising that amount to nearly $9 million last year. 

More from Technology

Tesla's Elon Musk Must Realize He Can't Do It All: Dumbest Thing on Wall Street

Tesla's Elon Musk Must Realize He Can't Do It All: Dumbest Thing on Wall Street

Tesla: What Are Wall Street's Best Analysts Saying Now?

Tesla: What Are Wall Street's Best Analysts Saying Now?

Cisco Investors Shouldn't Panic About Competition From Amazon -- For Now

Cisco Investors Shouldn't Panic About Competition From Amazon -- For Now

MoviePass CEO: Movie Theaters Like AMC Are Trying to Put Us Out of Business

MoviePass CEO: Movie Theaters Like AMC Are Trying to Put Us Out of Business

As Trump Courts Putin, Russia Is Shrinking Away from U.S. Economy

As Trump Courts Putin, Russia Is Shrinking Away from U.S. Economy