Optimize use of debounce functions