First approach of the solve cache function