added filtered_keys method. it combines attributes.keys with association.keys and passes them to filter method memoizing result.