Fast cache for custom defined function lookup

`on.temperature event handler took 5ms`