Another select{}.first cleanup.
Create a hash for the _vms so that it can pull by key instead of nested iteration.