Energy from a proposed data centre in York could be used to heat the swimming pool of the leisure centre next door under new plans.