Can we make this configurable instead? Doing so would avoid any future discussions on the 'best' place to write the state file.