Move processorId encoding/decoding to state access implementation