Officials had previously agreed to allow farmers to produce coca , a key raw material in the production of cocaine .