Race mode

Adds caching modes with the old (default) mode `readthrough` and the new one `race`.