Serialize accountsFile when data changed