Secure and efficient computation on biomedical data in a distributed environment