Cache Code Generation