Use generators to obtain latests revisions with included template (perf. fix)