Atmel Directory optimization