The cache can be backed by hardware/lookup, or by a cheap computation. The line between functions and data is really blurry.