in_memory conversion