Cache variable locally