add static cache for magc __get.