Don't create cache table when it is not needed