Cache working OK.

Performance increased in 20% for static objects.
shaders set in the correct position