NXP-10951: better logging configuration to be able to understand SQL behavior
NXP-10951: optim: do not update unchanged state (15% improvement in local scans)