Store the index after saving or analyzing multiple files.