AES multi-core bad performance

Hello, I am writing code that uses AES in multi-core, It is very efficient on my laptop 8 core Intel. But when I moving on a machine with more core like 48 - 72 (Xeon) the performance is bad.
I think because AES-NI works badly on multi-core because all the CPUs share the same memory for AES-NI instructions.
Is there a way to disable hardware aes-ni usage when using the crypto/aes library?