You could pre-allocate the byte array since we know the size of the metric UID and the size & # of tags. You can also mark it as final. Final is used a ton in OpenTSDB