Speed up login and handle windows files.