Optimized data listing queries

The data object listing queries now use the ANY(ARRAY(...)) hack to force the use of the indices.