Explain how you would optimize a security algorithm for performance in a system used by US Army teams.