cache generator variable