and Deficiency in Costas Arrays and APN Permutations -- Iterated Shared Memory Models --