Explain how you would optimize a slow-running calculation script used by structural engineers at Rrm Design Group.