Dynamodb: Improved batch_insert algorithm

- [x] @mikeklein13 
- [x] @be-dmitry