Many of these db calls can be removed by using nova.openstack.common.memorycache via the same pattern as in nova/api/metadata/handler.py
Many of these db calls can be removed by using nova.openstack. common. memorycache via the same pattern as in nova/api/ metadata/ handler. py