use single var for cache