Performance tweaks for Windows