cache scope building on associations

SQL statements for querying associations are now cached