added support to en/decrypt some data on the fly