Latest commit ignores number of pages (and thus page size) and only uses a constant of 512k.