Store material index.