Cap the redirect_cache size to prevent memory abuse