Fix glance cache serialization

glance cache should be serialized for deployment in bytes

Change-Id: Ia39cee30377f4396d9ea7f4e85c5af9b96bd3c79