Allow to cache functions with one parameters and also calls inside a function