More than doubled binary writer performance in java. Now on par with c++