We bring automated optimization to program and system security, rather than relying soley on expert-intensive, manual program refactoring. This gives the opportunity to rapid explore a large continuum of design options rather than a single, manually defined design point. We can exploit computations, optimization algorithms, and search to find favorable security and performance points in the design space. This further allows us to rapidly adopt to changes in goals, threats, system configuration, and hardware and system costs, with minimal human effort.