Yes, uint8_t switchState[64] would take 64 bytes of RAM. 64 bits would be much more compact. At some point you'll need a second copy of at least part of the data to compare old versus new state.