A well-seasoned cast iron pan that is properly maintained can be used to cook acidic foods like sauerkraut and even tomatoes. If your food tastes off — it means your pan is not properly seasoned or maintained, period. After cooking something acidic in cast iron, wash your pan in hot, soapy water, dry it, and then let it heat up on the stovetop with a bit of oil or fat.