Purging API cache with surrogate keys