Function resolveMemoryRetrievalPolicy