speed opt (renderer)
Perf: speedup cache creation in StateBlock
Cleanup