proper cache graph serialization