Add static cache for table instances.

This will never hold more than one instance because it is cleared on
each record-level export. We need a table instance for each exporter
item though (and there can be a lot of them for just 1 record) so this
should still speed things up quite a bit.