Added lighting cache. Lighting is now only updated when the lighting is changed.