Implement temporary speed fix for querying large tables without conditions