Use plan cache when materialize LocalSegment subtrees on storages
Currently execute_dml()
uses read_unprepared()
to materialize SELECT subtrees on the storages. It is not an optimal solution - it is much better to reuse the storage cache as we do for all cacheble queries. But we neet to make a little refactoring to pass local cache trait to the execute_dml()
function.
Edited by Denis Smirnov