Added cache to public api.