Refactored lib/cached_record/orm.rb a bit