Flexible Design of a Modular Simultaneous Exponentiation Core