NXP-11397: optimize document write
NXP-11397: avoid NPE on error logging
NXP-11389: improve Oracle path optimizations
NXP-11397: temporarily revert until test fix found
NXP-11397: code is ok