I read some of the answers on the forum trying to understand how a server talks back to client through TOR, and from what I understand nodes keep a record for a while of the next and previous node to forward the data. If a particular node is a part of many circuits, would it keep data for each circuit?
In the same way that a TCP response knows how to route a response back to the originating host, Tor maintains streams.
When the exit node sends a TCP request to a service, the service responds and the exit node attaches that response to the appropriate Tor StreamID that originally made the request. This is then routed back using the exact same path of the original request because each node will keep a circuit "open" (meaning keep a copy of the encryption keys for that circuit). The nodes do keep the circuit keys until either they expire after a certain period of time, or the client issues a "DESTROY" command to the circuit.1