Possibly not a big deal, but this can be called a lot and is constant for a given DB, so I'd be inclined to just store it in a global initialized when the db is opened (similarly to pageSize).