Factor out cxy_cache:access_item/5 and fix dialyzer type typos