Sharded DAO layer for Java