Preprocess response before caching it. If not, JSON.stringify might hang forever.