[review only] Serialize reads and writes to a given file

The title says it all. May help address #6437. Talk amongst yourselves.

CC @jasonsanjose @peterflynn @gruehle @dangoor @njx