added replacement of jvm-opts for perf testing
performance improvement of encode function [from 13601.358944 msecs to 7190.504324 msecs on a test file]