Added func address to the cache key in cached_function decorator
to avoid anonymous funcs collisions.