Add locmem cache for l10n use.

DO NOT MERGE (yet).

This is for testing and profiling to evaluate whether this
is a good idea to improve performance of our l10n system.

@jgmize @Osmose thoughts?