Optimizing Physical Security through Automation