add cache way of detecting transparency