client: smarter serialisation of EbookObjects from/to the cache