REVERSE_KEY_FUNCTION: move parameter to CACHES settings

It seems more appropriate to have REVERSE_KEY_FUNCTION as an
optional parameter next to KEY_FUNCTION than as a top-level parameter