Add method to get cached value