Preload Material Files

fix memory lead
add preload materials