Hello johan,
I think when we make a maplib from raster at that time raster file should cut into tiles by maplib and stored accordingly.the raster has index of all tiles and it should load only those tiles in memory which are required.this method is used by google map.it store all raster mapinto tiles and load only tiles which are required.
please feel free for any comments and query.
Explorer2000