Add memoization on $q promise level as an example