add feature for logging traceback when cache size is large