Return buffer instead of file_path if cache unavailable for model loading (#1280)
* Return buffer if cache unavailable for model file loading
* Minor cleanup
* Add back check
* Actually, original approach was better
* Support custom cache returning response or path
---------
Co-authored-by: Joshua Lochner <26504141+xenova@users.noreply.github.com>