And apply the window function only once at the end of the process function for the plugins that used it.