reduce batch size from 50 to 5, and make it user-configurable

@gwprice @e0d