Faster query when going back to main page