removed some debug logging and added in a constant to be used for cache timing