Cache results in memory in serialized form