Make App Engine compatible.

MemoryBackend uses `unsafe` which is not allowed.