Optimized redundant calls in collocation routine