made batched_store max_entries and max_size configurable
fixed regression introduced in previous commit