Simplified cache API
Moved file check to cache
Added get_module