mam.lib: don't recurse backward for more then 1000 entries.