Clearly i need to do more research then - i was hung up on the fact that they are processed from the leaves.

A colorless or white crystalline alkaloid, C17H21NO4, extracted from coca leaves, sometimes used in medicine as a local anesthetic especially for the eyes, nose, or throat and widely used as an illicit drug for its euphoric and stimulating effects.
[French coca?ne, from coca, coca, from Spanish; see coca.]

The American Heritage? Dictionary of the English Language, Fourth Edition copyright ?2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved.
cocaine, cocain [kəˈkeɪn]
n
(Law / Recreational Drugs) an addictive narcotic drug derived from coca leaves or synthesized, used medicinally as a topical anaest

Still sounds to me like cocaine is the end product!