A thread-safe lookup table cache for ActiveRecord