Ensure the contents are actually persisted in the temp file.

[#82238400]