Perhaps you can check out this previous discussion of a similar topic: Performance / Fastest way to get attribute values
Particularly, what version of the AF SDK are you using? In AF 2.6, work has been done to improve the performance of FindAttributesByPath().
In addition, are you targeting the same AF server from your development and Windows Server 2012?
What is the network latency between your Windows Server 2012 and the AF server?
We remove all OSI products from the servers, cleaning the registry and removing folders. After this, we reinstall the products again.
The problem doesn't happen anymore!
Thanks for your help!