faster algo, loop all terms on each post