prepare infrastructure for inlining CTE