Performance improvement in batch

Moving Y.bind('reject', resolver) out of a loop