Re-add optimize: argument to query planning API.