pub fn memory_callback_handler() -> Arc<MemoryCallbackHandler>
Helper function to create a memory callback handler