refactored crypto-batch to be able to take public key arrays