You can remove a lookup by:

```python
bucket = cache[project_id]
last = bucket['t']

# ...

new_count = max(1, bucket['c'] - drain + 1)