including a value cache
fixes #3