The main function of the data encryption service is to prevent data loss and damage.