Add caching to 'flavor' plugin type.

Page execution time:

Without patch  860 ms
With patch 775 ms