When reading a record from database, InlineMataService creates unnecessary partial copies of data by calling Value.getData(). getData() returns a copy of part of original array and this new array only used for read-only access. Attached is the patch that allows read-only access to Value data without copying it.
Created attachment 19142 [details] Patch
patch applied, thanks.