TCache: initial implementation