Crashfix, forgot to clamp z in the other cached functions.