add method to reduce cache size