Save stats to file