Improved performace, removed duplicate transfers

Libpaillier modified to reduce random overhead