Theory-inspired optimizations for privacy preserving distributed OLAP algorithms