Change encryption to use party data pointer