Fly.io improved their WireGuard implementation by introducing a just-in-time (JIT) system, which installs WireGuard peers on demand, reducing the number of stale peers and improving performance. The new system uses a BPF filter to catch incoming connection attempts and a daemon to install peers in the kernel. This approach allows for faster connection establishment and reduces the load on gateways. The company has been running this system in production for a few weeks and reports positive results.