654 - cache some permutations