Improve performance of `get_e2e_cross_signing_key`.