[PSH] limit max cache size to 512M for 32bit process and dispose the obj...

Fixed a issue where OutOfMemoryException might throw in 32 bit powershell session when downloading/uploading large files.