Remove unnecessary error handling
Avoid array copy in query evaluation