In-memory ActiveRecord querying and associations for static data