Pharmaceutical Cocaine is also used in eye surgery,as well as other legit medical purposes.

Here's an interesting little tidbit about the processing of the coca leaves
.
Coca-Cola includes a coca leaf extract as an ingredient prepared by a Stepan Company plant in Maywood, New Jersey.

The facility, which had been known as the Maywood Chemical Works, was purchased by Stepan in 1959. The plant is the only commercial entity in the United States authorized by the Drug Enforcement Administration to import coca leaves, which come primarily from Peru via the National Coca Company.

Approximately 100 metric tons of dried coca leaf are imported each year. The cocaine-free extract is sold to The Coca-Cola Company for use in soft drinks, while the cocaine is sold to Mallinckrodt, a pharmaceutical firm, for medicinal purposes.