WIP: replace all CPU local variables with Thread local, need to rework cache class completely