This leads to one unnecessary communication. Namely, you get 'c' and 't' from Redis for the check, then ask Redis again for 'c' and 't' in the next statement. Could you change this to:

```python
count, last_time = [float(key) for key in redis_handler.hmget(project_id, 'c', 't')]
if not all([count, last_time]):  # if any values are None
    raise KeyError
...
```