optimize wmi function (cpu load)