You don't need this. Before every action with the settings you read the file all over again. No state is required.