make the CACHE env variable more effective

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>