Refactored encryption/decryption util classes as service providers.