Optimized data record formatting functions (rev. 5)

Signed-off-by: nixnodes <code@eth.si>
Latest: 1.6-5

Signed-off-by: nixnodes <code@eth.si>