Added print_cache_info function which is used at the beginning of exec.
Removed some unnecessary printfs