cache ap_id in id instead of caching user two times