yet another part of cache permutations