Simplify encrypt and sign backend