get rid of the current pagination logic

We have to do a proper pagination on the API, there is no point
in fixing the current solution if we don't plan to use it in the long
run.