I believe Sherlock used quite a bit of cocaine in the original books.
Yes Holmes did use cocaine but remember this was in Victorian England or a little later.
Also Dr. Watson keeps telling Sherlock that the Cocaine is bad for his health.