decrease memory consumption during import