Even more instrumentation.
I founded it! Now the key generation works the same as the separate implementation.