Persisting collected data into files