There is a simple process of starch extraction from sago pith that leaches away a sufficient amount of the toxins and thus only the starch component is consumed.
Large wooden mortar and pestle
Types of teak wood
How to remove varnish from wood with vinegar
Crosssection of Pinus radiata showing pith, embedding of branch whorl