cache: Cache minified files

Provide a way to set the cache mechanism for the bundle result and an
default in memory implementation.