Add argument 'encrypt' to importKey