Cache database enrollment lookups

This avoids doing a query for every alternative we test against.
Merge pull request #95 from mixcloud/ts_cache_enrollment

Cache database enrollment lookups