adding cache trimming for memory