some performance improvments to material operators