front: Refactor caching mechanics to separate RomCache class.