Improving memory allocation with Libbeat output client and Elasticsearch