Olympics to leave behind a lasting security legacy