Optimised shader manager