moved memoize bank out of loop and added magic stores
removed debug log entry