A c++ imp file Memory cache and callback Utility