Added flag for disabling the write of runtime.json

For performance issues we don't want to write config changes in a file. So we need a flag to disable this behaviour.