reduce mapper memory consumption