Smarter, just-in-time collection creation