extracted retrieve method from cache creation