added binary reading for cache to support all systems