SaveFileAtomic
procedure SaveFileAtomic(const aFileName: string; const aData: tBytes); overload;
Atomic file writers (temp file then OS replace) and a plain text reader, for the account URL and any other small state the host keeps beside the PFX.
procedure SaveFileAtomic(const aFileName, aText: string); overload;