generic repository for fast access