Merge "res_sorcery_memory_cache: Fix SEGV in some CLI commands"