Allow persisting only once if multiple files are loaded

Activating this option allows setting references between multiple files and flushing only once.