registry: use binary format instead of XML for cache