Speed up misc.maxabs() using reduction and kernel memoization.