#303 moved getPublicKey request earlier than getCipherKey