moved check for maxsize==0 before call to make_key.  Significantly speeds up the nocaching case