Changing the key mem into to four separate memories.