I would implement this instead as

```python
class StateLog:
    ...
    def get_cache_key(self):
        ...
```
are there going to be any issues with that?