Limit batch size of pickle messages