Store tcx and cache when they are used multiple times instead of calling functions every time
Store tcx and cache when they are used multiple times instead of calling functions every time

graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust