A man trying to board a plane at Long Beach Airport last month told police he had enough fentanyl with him for more than 2,000 lethal doses of the drug, authorities recently revealed in court documents.

In a search warrant filed at the Long Beach Courthouse earlier this month, police say Transportation Security Administration workers discovered the drugs during a preflight screening on Christmas Eve.

The 30-year-old suspect, Devin Ramos, was carrying a plastic sandwich baggie filled with powdered fentanyl, according to police.

According to the warrant, Ramos told investigators he had about 5 grams of the drug, which is a powerful synthetic opioid that the DEA says is up to 100 times stronger than morphine.

“Boarding a plane with the amount of fentanyl Ramos was attempting to travel with, in the confined space of airplanes, was of great concern,” police said in a statement Thursday.

The search warrant authored by a LBPD detective puts the danger more bluntly:

“To bring this on the airplane, with the circulating oxygen inside of the airplane could be potentially deadly for everyone on board if the item was opened and released into the oxygen system,” he wrote.

For a non-opioid user, 2 milligrams of fentanyl can be lethal, according to the detective and the DEA.

Ramos told police he was badly addicted to fentanyl and had the drug for his own use, but he later admitted to also supplying it to “a few customers,” according to the warrant, which sought authorization to search Ramos’ phone.

Ramos, who was also accused of carrying methadone and diazepam, never made it onto the plane with the drugs, according to authorities.

He was taken into custody before being released because of a medical issue, police said.

He’s since been charged with three felony counts of transportation of a controlled substance, and a warrant has been issued for his arrest, according to the LBPD.

Jeremiah Dobruck is managing editor of the Long Beach Post. Reach him at [email protected] or @jeremiahdobruck on Twitter.