def initialize_static_record_cache#:nodoc:
      return unless @static_record_cache.nil?
      records = self.find_without_static_record(:all, acts_as_static_record_options[:find]||{})
      @static_record_cache = records.inject({:primary_key => {}, :key => {}, :calc => {}}) do |cache, record|
        cache[:primary_key][record.send(self.primary_key)] = record
        if acts_as_static_record_options[:key]
          cache[:key][record.send(acts_as_static_record_options[:key])] = record
        end
        cache
      end
    end
def initialize_static_record_cache#:nodoc:
      return unless @static_record_cache.nil?
      records = self.find_without_static_record(:all, acts_as_static_record_options[:find]||{})
      @static_record_cache = records.inject({:primary_key => {}, :key => {}, :calc => {}}) do |cache, record|
        cache[:primary_key][record.send(self.primary_key)] = record
        if acts_as_static_record_options[:key]
          cache[:key][record.send(acts_as_static_record_options[:key])] = record
        end
        cache
      end
    end
Find all the record and initialize the cache