Some stats recording code.
Set cache timeout to 8 seconds. Data offset now uses longs.