Made Performance Counter polling more efficient