cache the queries for fetching option types