Added this code near the top of create_post_attachment_from_url attempts to find the image in the media library.
The cache-images plugin makes includes sized-down images in your posts. This triggered auto-featured-image to make extra thumbnails in the Media Library. This resolves that issue.
Thanks again for the plug-in, very helpful.
[Code moderated as per the Forum Rules. Please use the pastebin]