Memory usage and AES for big files optimization