{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,8]],"date-time":"2026-10-08T20:58:02Z","timestamp":1791493082550,"version":"4.3.4"},"reference-count":57,"publisher":"Association for Computing Machinery (ACM)","issue":"9","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2025,5]]},"abstract":"<jats:p>Data sharing opportunities are everywhere, but privacy concerns and regulatory constraints often prevent organizations from fully realizing their value. A private data federation tackles this challenge by enabling secure querying across multiple privately held data stores where only the final results are revealed to anyone. We investigate optimizing relational queries evaluated under secure multiparty computation, which provides strong privacy guarantees but at a significant performance cost.<\/jats:p>\n          <jats:p>We present Alchemy, a query optimization framework that generalizes conventional optimization techniques to secure query processing over circuits, the most popular paradigm for cryptographic computation protocols. We build atop VaultDB, our open-source framework for oblivious query processing. Alchemy leverages schema information and the query's structure to minimize circuit complexity while maintaining strong security guarantees. Our optimization framework builds incrementally through four synergistic phases: (1) rewrite rules to minimize circuits; (2) cardinality bounding with schema metadata; (3) bushy plan generation; and (4) physical planning with our fine-grained cost model for operator selection and sort reuse. While our work focuses on MPC, our optimization techniques generalize naturally to other secure computation settings. We validated our approach on TPC-H, demonstrating speedups of up to 2 OOM.<\/jats:p>","DOI":"10.14778\/3746405.3746425","type":"journal-article","created":{"date-parts":[[2025,9,3]],"date-time":"2025-09-03T17:06:20Z","timestamp":1756919180000},"page":"3021-3034","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Alchemy: A Query Optimization Framework for Oblivious SQL"],"prefix":"10.14778","volume":"18","author":[{"given":"Donghyun","family":"Sohn","sequence":"first","affiliation":[{"name":"Northwestern University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kelly","family":"Jiang","sequence":"additional","affiliation":[{"name":"Northwestern University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Nicolas","family":"Hammer","sequence":"additional","affiliation":[{"name":"Northwestern University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jennie","family":"Rogers","sequence":"additional","affiliation":[{"name":"Northwestern University"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,9,3]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/800061.808726"},{"key":"e_1_2_1_2_1","unstructured":"Apache Software Foundation. [n.d.]. Calcite. https:\/\/calcite.apache.org"},{"key":"e_1_2_1_3_1","unstructured":"Apple and Google. 2021. Exposure Notification Privacy-preserving Analytics (ENPA) white paper. (2021)."},{"key":"e_1_2_1_4_1","volume-title":"Oblivious query processing. ICDT","author":"Arasu Arvind","year":"2014","unstructured":"Arvind Arasu and Raghav Kaushik. 2014. Oblivious query processing. ICDT (2014)."},{"key":"e_1_2_1_5_1","first-page":"1749","article-title":"From keys to databases\u2014real-world applications of secure multi-party computation","volume":"61","author":"Archer David W","year":"2018","unstructured":"David W Archer, Dan Bogdanov, Yehuda Lindell, Liina Kamm, Kurt Nielsen, Jakob Illeborg Pagter, Nigel P Smart, and Rebecca N Wright. 2018. From keys to databases\u2014real-world applications of secure multi-party computation. Comput. J. 61, 12 (2018), 1749\u20131771.","journal-title":"Comput. J."},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/2508859.2516738"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1468075.1468121"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.14778\/3055330.3055334"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407854"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-47854-7_14"},{"key":"e_1_2_1_11_1","volume-title":"Students and Taxes: A Privacy-Preserving Social Study Using Secure Computation. In Privacy Enhancing Technologies Symposium (PETS).","author":"Bogdanov Dan","year":"2016","unstructured":"Dan Bogdanov, Liina Kamm, Baldur Kubo, Reimo Rebane, Ville Sokk, and Riivo Talviste. 2016. Students and Taxes: A Privacy-Preserving Social Study Using Secure Computation. In Privacy Enhancing Technologies Symposium (PETS)."},{"key":"e_1_2_1_12_1","volume-title":"Deploying secure multiparty computation for financial data analysis. Financial Cryptography and Data Security","author":"Bogdanov Dan","year":"2012","unstructured":"Dan Bogdanov, Riivo Talviste, and Jan Willemson. 2012. Deploying secure multiparty computation for financial data analysis. Financial Cryptography and Data Security (2012), 57\u201364."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.14778\/3007263.3007277"},{"key":"e_1_2_1_14_1","volume-title":"Differentially oblivious database joins: Overcoming the worst-case curse of fully oblivious algorithms. Cryptology ePrint Archive","author":"Chu Shumo","year":"2021","unstructured":"Shumo Chu, Danyang Zhuo, Elaine Shi, and TH Hubert Chan. 2021. Differentially oblivious database joins: Overcoming the worst-case curse of fully oblivious algorithms. Cryptology ePrint Archive (2021)."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3342195.3387552"},{"key":"e_1_2_1_16_1","unstructured":"Bailu Ding Vivek Narasayya Surajit Chaudhuri et al. 2024. Extensible Query Optimizers in Practice. Foundations and Trends\u00ae in Databases 14 3\u20134 (2024) 186\u2013402."},{"key":"e_1_2_1_17_1","unstructured":"David-Paul Dornseifer and Ben Liderman. 2024. Build secure multi-party computation (MPC) wallets using AWS Nitro Enclaves. https:\/\/aws.amazon.com\/blogs\/web3\/build-secure-multi-party-computation-mpc-wallets-using-aws-nitro-enclaves\/."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.14778\/3389133.3389138"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/11787006{__}j1"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.14778\/3364324.3364331"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1109\/EuroSP53844.2022.00017"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/582353.582400"},{"key":"e_1_2_1_23_1","unstructured":"Inc. Google. [n.d.]. Private Join and Compute. GitHub repository: https:\/\/github.com\/google\/private-join-and-compute."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-56880-1_28"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-45146-4_9"},{"key":"e_1_2_1_26_1","volume-title":"Query Processing in Database Systems","author":"Jarke Matthias","unstructured":"Matthias Jarke. [n.d.]. Common subexpression isolation in multiple query optimization. In Query Processing in Database Systems. Springer, 191\u2013205."},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1093\/bioinformatics\/btt066"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-07536-5_33"},{"key":"e_1_2_1_29_1","first-page":"4961","article-title":"Crypten: Secure multi-party computation meets machine learning","volume":"34","author":"Knott Brian","year":"2021","unstructured":"Brian Knott, Shobha Venkataraman, Awni Hannun, Shubho Sengupta, Mark Ibrahim, and Laurens van der Maaten. 2021. Crypten: Secure multi-party computation meets machine learning. Advances in Neural Information Processing Systems 34 (2021), 4961\u20134973.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"e_1_2_1_30_1","volume-title":"35th International Colloquium, ICALP 2008, Reykjavik, Iceland, July 7\u201311, 2008, Proceedings, Part II 35","author":"Kolesnikov Vladimir","year":"2008","unstructured":"Vladimir Kolesnikov and Thomas Schneider. 2008. Improved garbled circuit: Free XOR gates and applications. In Automata, Languages and Programming: 35th International Colloquium, ICALP 2008, Reykjavik, Iceland, July 7\u201311, 2008, Proceedings, Part II 35. Springer, 486\u2013498."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342274"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407814"},{"key":"e_1_2_1_33_1","unstructured":"Andrei Lapets Eric Dunton Kyle Holzinger Frederick Jansen and Azer Bestavros. 2015. Web-based multi-party computation with application to anonymous aggregate compensation analytics. Technical Report. Computer Science Department Boston University."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2024.3375028"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.14778\/3611540.3611627"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.14778\/3594512.3594513"},{"key":"e_1_2_1_37_1","volume-title":"20th USENIX Symposium on Networked Systems Design and Implementation.","author":"Liagouris John","year":"2023","unstructured":"John Liagouris, Vasiliki Kalavri, Muhammad Faisal, and Mayank Varia. 2023. SECRECY: Secure collaborative analytics in untrusted clouds. In 20th USENIX Symposium on Networked Systems Design and Implementation."},{"key":"e_1_2_1_38_1","volume-title":"Secure Query Processing with Linear Complexity. arXiv preprint arXiv:2403.13492","author":"Luo Qian","year":"2024","unstructured":"Qian Luo, Yuhang Wang, Wei Dong, and Ke Yi. 2024. Secure Query Processing with Linear Complexity. arXiv preprint arXiv:2403.13492 (2024)."},{"key":"e_1_2_1_39_1","unstructured":"Frank D McSherry. 2009. Privacy integrated queries: an extensible platform for privacy-preserving data analysis. In SIGMOD. ACM 19\u201330."},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3372297.3423358"},{"key":"e_1_2_1_41_1","volume-title":"Exchanging de-identified data between hospitals for city-wide health analysis in the Chicago Area HealthLNK data repository (HDR). IRB Protocol","author":"PCORI.","year":"2015","unstructured":"PCORI. 2015. Exchanging de-identified data between hospitals for city-wide health analysis in the Chicago Area HealthLNK data repository (HDR). IRB Protocol (2015)."},{"key":"e_1_2_1_42_1","volume-title":"USENIX Security Symposium. 2129\u20132146","author":"Poddar Rishabh","year":"2021","unstructured":"Rishabh Poddar, Sukrit Kalra, Avishay Yanai, Ryan Deng, Raluca Ada Popa, and Joseph M Hellerstein. 2021. Senate: A Maliciously-Secure MPC Platform for Collaborative Analytics.. In USENIX Security Symposium. 2129\u20132146."},{"key":"e_1_2_1_43_1","first-page":"187","article-title":"How To Exchange Secrets with Oblivious Transfer","volume":"2005","author":"Rabin Michael O.","year":"2005","unstructured":"Michael O. Rabin. 2005. How To Exchange Secrets with Oblivious Transfer. IACR Cryptol. ePrint Arch. 2005 (2005), 187. https:\/\/api.semanticscholar.org\/CorpusID:15222660","journal-title":"IACR Cryptol. ePrint Arch."},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/3548606.3560658"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/3209811.3212699"},{"key":"e_1_2_1_46_1","unstructured":"Jennie Rogers Elizabeth Adetoro Johes Bater Talia Canter Dong Fu Andrew Hamilton Amro Hassan Ashley Martinez Erick Michalski Vesna Mitrovic et al. 2022. VaultDB: A Real-World Pilot of Secure Multi-Party Computation within a Clinical Research Network. arXiv preprint arXiv:2203.00146 (2022)."},{"key":"e_1_2_1_47_1","unstructured":"Wolfgang Scheufele and Guido Moerkotte. 1996. Constructing Optimal Bushy Processing Trees for Join Queries is NP-hard. Technical Report 96-011. School of Business Informatics and Mathematics University of Mannheim. https:\/\/ubmadoc.bib.uni-mannheim.de\/795"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1109\/QEST.2011.33"},{"key":"e_1_2_1_49_1","unstructured":"Aditya Shastri David Wu Lynn Chua Ruiyu Zhu Tal Davidi Yu Sheng and Josh Mintz. 2022. Private Computation Framework 2.0. https:\/\/research.facebook.com\/publications\/private-computation-framework-2-0\/."},{"key":"e_1_2_1_50_1","volume-title":"Everything You Always Wanted to Know About Secure and Private Database Systems (but were Afraid to Ask)","author":"Sohn Donghyun","year":"2023","unstructured":"Donghyun Sohn, Xiling Li, and Jennie Rogers. 2023. Everything You Always Wanted to Know About Secure and Private Database Systems (but were Afraid to Ask). IEEE Data Engineering Bulletin (2023)."},{"key":"e_1_2_1_51_1","volume-title":"Ernest: Efficient performance prediction for large-scale advanced analytics. In 13th {USENIX} symposium on networked systems design and implementation ({NSDI} 16). 363\u2013378.","author":"Venkataraman Shivaram","year":"2016","unstructured":"Shivaram Venkataraman, Zongheng Yang, Michael Franklin, Benjamin Recht, and Ion Stoica. 2016. Ernest: Efficient performance prediction for large-scale advanced analytics. In 13th {USENIX} symposium on networked systems design and implementation ({NSDI} 16). 363\u2013378."},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/3302424.3303982"},{"key":"e_1_2_1_53_1","unstructured":"Xiao Wang Alex J Malozemoff and Jonathan Katz. 2016. EMP-Toolkit: Efficient Multiparty Computation Toolkit. https:\/\/github.com\/emp-toolkit."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3452808"},{"key":"e_1_2_1_55_1","volume-title":"30th USENIX Security Symposium (USENIX Security 21)","author":"Weng Chenkai","year":"2021","unstructured":"Chenkai Weng, Kang Yang, Xiang Xie, Jonathan Katz, and Xiao Wang. 2021. Mystique: Efficient conversions for {Zero-Knowledge} proofs with applications to machine learning. In 30th USENIX Security Symposium (USENIX Security 21). 501\u2013518."},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/3460120.3484556"},{"key":"e_1_2_1_57_1","volume-title":"Joseph E Gonzalez, and Ion Stoica.","author":"Zheng Wenting","year":"2017","unstructured":"Wenting Zheng, Ankur Dave, Jethro G Beekman, Raluca Ada Popa, Joseph E Gonzalez, and Ion Stoica. 2017. Opaque: An Oblivious and Encrypted Distributed Analytics Platform.. In NSDI. 283\u2013298."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3746405.3746425","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,9,4]],"date-time":"2025-09-04T19:49:55Z","timestamp":1757015395000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3746405.3746425"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,5]]},"references-count":57,"journal-issue":{"issue":"9","published-print":{"date-parts":[[2025,5]]}},"alternative-id":["10.14778\/3746405.3746425"],"URL":"https:\/\/doi.org\/10.14778\/3746405.3746425","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2025,5]]},"assertion":[{"value":"2025-09-03","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}