[RFC} Add limit to batched records

This PR groups batched records so that the formatted message length < 10000. Just to be safe I set the `MAXIMUM_MESSAGE_LENGTH` to 9500 characters.