Added attic functionality to early key-value queries in query. Not yet tested.