Small cleanups
Activate context before checking cache, otherwise the backend might get confused