statically caching lambda