Add a new API for getting the data handle