MemoryLayout memoryLayout = readerWriter.getMemoryLayout();
for (int sectorId = 0; sectorId < memoryLayout.getSectors(); sectorId++) {
TrailerBlock trailerBlock = readTrailerBlock(readerWriter, sectorId);
if (trailerBlock != null) {
Key keyToWrite = trailerBlock.isKeyBReadable() ? Key.A : Key.B;
for (byte[] key : knownKeys) {
try {
initTransportConfig(readerWriter, sectorId, new KeyValue(keyToWrite, key));
for (int blockId = 0; blockId < memoryLayout.getBlocksPerSector(sectorId); blockId++) {
if (!memoryLayout.isTrailerBlock(sectorId, blockId) && !(blockId == 0 && sectorId == 0)) {