If google can not SEE the content, the content is not there; they will remove it from their index.
As for the 40k limit, where is this coming in to play? It doesn't make sense that they'd have a 40k limit when their sitemap index allows up to 50k links per sitemap...