Custom Plugin latency increased in Kong 3.6

We have custom plugin built on Kong OSS 3.5. Recently kong 3.6 was released, when we tested the same custom plugin on kong 3.6, we found a huge spike in the custom plugin latency.
In changelog we observed that from 3.5 to 3.6, many lua libraries were upgraded to newer versions, but we don’t use any of them in our custom plugin.

What could be the possible reason for this sudden spike in latency ?? even though our custom plugin source code remains exactly same.

I see many core changes were done in the newer release, can that be the reason ?