Try file.open for the ftp instead of File.read to reduce memory usage