Faster rebuild_counter_caches
Importer for legacy data