Sjors ProvoostThe Noise framework fixes this by generating ephemeral keys during the handshake. noiseprotocol.org