Describe a time you had to refactor a data processing script to significantly improve its execution time.