Prepare public keys