caching function decorators for node.js