* Do not fail decoding on first read error Try decoding with the rest successfully read inputs. * some small code improvements * Allocate map memory upfront