add cache for quotation and catch outof memory exception