adding cached_object functionality to dimagi_utils