allow memoize decorator with custom make_key function
cache badge thumbnail generator