Added more write_secret_chat_file calls