Fix dpr cache to store by key indexed by

We would try to lookup values in the dpr cache by the value we were
getting from the client but then store the result based on the key of
the discretized DPR.