Optimize IsIE11DeveloperPreview() to cache the results in order to avoid rechecking user agent again and again.