Prevent long running select count queries for choosen tables, and preserve the oryginal behaviour for other tables