Treatment of clay before and after molding