use proper cache for gids