Reduce pagination template computations