If they have direct_url enabled in their glance config, we could tell from based on that url (starts with swift+http://). direct_url isn't enabled by default in devstack, so I don't think that's a reliable way. We could also detect based on config settings (if GLANCE_SWIFT_CONTAINER is set?), and default to not optimizing.