TCache: use inline function whenever possible