Describe a time you had to optimize a piece of code to improve hardware performance while working on ACG Consulting Group projects.