Adding geopackage cache support

Implemented _geopackage_cache function.