Reads the state value for the specified key
Writes the specified value as the state for the specified key