The important data and algorithms are held in their servers, not in the phone app. This gives them a lot of control and responsibility over the models, leading me to believe that they wouldn't store data on illegal drugs.
I also feel it's kind of scummy to keep this on the server. There is no reason that this functionality couldn't be offline and on the phone, except to let them charge you monthly for the hardware you're effectively leasing from them, rather than letting you use the device you own.
Also, I expect if this does take off that someone will replace their app's phone home behavior and sever-side components with an equivalent on localhost. Slightly later will be the cloned scanners that plug into the app. They should focus on providing higher-quality and higher-accuracy scanners than competition can achieve, rather than trying to lock out competitors.
Now that's interesting. I wonder if they've considered marketing it as a way of testing the purity of illegal drugs?