chp 8 caching and layout