caching for contact/subscriber on lua