Data sharing on the cloud: a scalable proxy-based protocol for privacy-preserving queries