Partial implementation of score cache.