remove unneeded code and free resultMapArgsCtxt on new job to free some memory