Support for configurable compression, encryption algorithm