Easier caching in node.js