Don't include cache in serialization of backend

Fixes #227