Yes. I have been tracing through the code to see how it differs from 3.2 but I don't have an answer yet.

What I do remember is that replicating the 3.2 behavior will be really hard, because in 4.0 it gets a different set of params that make it hard (impossible?) for it to tell if it should be using a shared connection pool.