A `define-index` that evaluates its arguments might be a good idea. A client connecting a server would then, upon handshake, ask for the current index, and then use it for all following communication.