SNOOP is an adaptive middleware for secure multi-party computations (SMC). It combines support for secure multiparty computations, encryption, public key infrastructure (PKI), certificates, and certificate authorities (CA). It is used to perform statistical analysis of electronic health record (EHR) data. EHR data are typically located at different general practices and hospitals. SNOOP and the deployment of SNOOP applications have to take into consideration legal, security and privacy issues involved in statistical analysis of such data. SNOOP tries to support a wide range of possible SMC algorithms and computing graphs. It provides high-level programming abstractions that adapt to the current run-time environment at deploy time. Contracts are provided to match the application requirements with available run-time functionality and requirements.