Efficient crypto operations in web workers