Restructured state machine for indirect reads/writes