LPS-33314 - adding thread local optimizations for site and layout templates
LPS-33314 SF