do you need to cache the whole state log? could you instead cache just the state? like here in imagekit here https://github.com/matthewwithanm/django-imagekit/blob/develop/imagekit/cachefiles/backends.py#L7