Replace localhost with 127.0.0.1 for better performance on Windows.