Found a problem with the new algorithm, so in order to test really quick im using a cache mechanism