Easy caching of methods calls