dp state compression