Add code to persist and restore "runtime" environment variables

1 job for issue_1603 in 44 minutes and 1 second (queued for 4 seconds)