this is how it's used in pharma. (yes it's wiki)
https://en.wikipedia.org/wiki/Magnesium_stearate
Magnesium stearate is often used as an anti-adherent[3] in the manufacture of medical tablets, capsules and powders.[4] In this regard, the substance is also useful because it has lubricating properties, preventing ingredients from sticking to manufacturing equipment during the compression of chemical powders into solid tablets; magnesium stearate is the most commonly used lubricant for tablets.[5] However, it might cause lower wettability and slower disintegration of the tablets and slower and even lower dissolution of the drug.[6]
Magnesium stearate can also be used efficiently in dry coating processes.[7][8][9]
In the creation of pressed candies, magnesium stearate acts as a release agent and it is used to bind sugar in hard candies such as mints.[10]
Magnesium stearate is a common ingredient in baby formulas.[11]
It's also your bath tub soap ring.. have fun with that.