Using metadata to improve provisioning