Add threading for encryption of arbitrary file sizes