This could be done with a named cursor instead of OFFSET and LIMIT. In theory it should be more efficient, in practice this is something we can have a look at if we find performance issues in the future. For the moment it seems to be good enough.