NEXUS-6323: Plexus cipher reimplementation