preliminary support for data encryption variant
removed unused private method