Clean up readEntry API.