optimize gamble processing batch