Copy pasted resource cache from book