Add locmem cache for l10n use.

I think this is a good idea. Let's consider merging.

@jgmize @Osmose thoughts?