Increasing Offset Variable Length

According to the User’s Guide the variables used to hold offsets and lengths are only 32 bits wide. This means that the largest NAND flash fully supported is 2GiBytes I need to do a NAND flash that is much larger than the current maximum. I’m wondering if I could change the necessary variables to be a bigger size than 32 bits and build the application myself. Is this possible? Is the code written that implementing such a change would be easy to accomplish? Any suggestions where I should be looking to make this change? Thanks,