This is why we season cast iron properly. This means warm the pan, rub oil in well, then heat to roughly 400f for about 30-45 min and then cool in the oven for an hour or two. Then repeat 3-4 times.
What this means is the oil changes from a fluid to a organic polymer solid that is a coating over the pan.
If you have that, tomatoes are no issue.