Make materialization update processed_states in state.